package com.jiangyao.controller;


import com.jiangyao.common.ApiResult;
import com.jiangyao.model.dto.InterviewInvitationDetailDTO;
import com.jiangyao.model.entity.InterviewInvitation;
import com.jiangyao.model.vo.InterviewInvitationVo;
import com.jiangyao.service.InterviewInvitationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.jiangyao.controller.BaseController;

/**
 * <p>
 * 面试邀请 前端控制器
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-13
 */
@RestController
@RequestMapping("/interviewInvitation")
@Api(tags = "面试邀请相关接口")
public class InterviewInvitationController extends BaseController {

    @Autowired
    private InterviewInvitationService interviewInvitationService;

    /**
     * 获取面试邀约详情
     * @return
     */
    @GetMapping("/getInterviewInvitationDetail")
    @ApiOperation(value="获取面试邀约详情",notes = "必填字段：sendId")
    public ApiResult<InterviewInvitationVo> getInterviewInvitationDetail(@RequestParam(value = "sendId",required = true) Integer sendId){
        InterviewInvitationVo interviewInvitationDetail = interviewInvitationService.getInterviewInvitationDetail(sendId);
        return ApiResult.success(interviewInvitationDetail);
    }
}

